import { deptList } from '@/api/user'


const state = {
  deptList:[]
}

const mutations = {
  SET_DEP_LIST: (state, deptList) => {
    state.deptList = deptList
  }
}

const actions = {
   // 获取科室数据
  async getDeptList({ commit, state }) {
    const res = await deptList();
    console.log('获取科室数据'.res);
    
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
